package com.sys.platform.entity.vo.DossierDevice;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.OrderBy;
import java.util.Date;

/**
 * 档案馆设备对象 dossier_device
 *
 * @author yuanfuqiang
 * @date 2024-01-10
 */

@Data
public class DossierDeviceVO {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("设备id")
    private String deviceId;

    @ApiModelProperty("类型 1：人员入侵 2：温湿度 3: 漏水检测  4: 智能开关")
    private Integer type;

    @ApiModelProperty("房间号")
    private String roomNum;

    @ApiModelProperty("设备端口")
    private String port;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    @OrderBy("desc")
    private Date createTime;

    @ApiModelProperty("摄像头名称")
    private String cameraName;
    @ApiModelProperty("设备编码")
    private String cameraCode;
    @ApiModelProperty("主码流地址")
    private String mainStream;
    @ApiModelProperty("1,在线，2离线，3未注册，4，已注册")
    private Integer contractStatus;
    @ApiModelProperty("ip地址")
    private String ipAddress;

    @ApiModelProperty("默认查全部，不为空查未打点的")
    private Integer positionStatus; //默认空
    private String x;
    private String y;
    private String z;

    @ApiModelProperty("告警数据")
    private String data;

    @ApiModelProperty("告警状态")
    private Integer warningStatus;
    @ApiModelProperty("1 正常 2故障")
    private Integer status;

    @ApiModelProperty("告警统计")
    private Integer warningCount;
}
